package dao;

public abstract class Dao {
	protected int[] parseIntegerList(String list) {
		String[] listitems = list.split(",");
		int[] numbers = new int[listitems.length];
		for (int i = 0; i < listitems.length; i++) {
			numbers[i] = parseInt(listitems[i]);
		}
		return numbers;
	}

	protected int parseInt(String number) {
		return Integer.parseInt(number.trim());
	}
}
